<?php
	define('DEVELOPMENT',true); //是否开发模式

	define("__SITEPATH__", str_replace('\\','/',dirname(dirname(__FILE__))));
	define("LIBPATH",__SITEPATH__ . '/library/');
	
	set_include_path('.' .PATH_SEPARATOR.LIBPATH.PATH_SEPARATOR.get_include_path());
	require_once LIBPATH.'ORM/ORM.php';
	/* project name */
	if( !defined( "__PROJECTNAME__" ) )
	@define( "__PROJECTNAME__" , "http://www.zsy.com" );

	$localhost = 'localhost';
	$rootname = 'root';
	$passwd = '';
	$dbname = 'zsy';
	$port = '3306';
	
	//本站默认dns及数据库配置
	define('__DEFAULTDNS__', "mysql:dbname={$dbname};host={$localhost}");
	define("__DEFAULTHOST__", $localhost);
	define("__DEFAULTPORT__", $port);
	define("__DEFAULTROOT__", $rootname);
	define("__DEFAULTPASSWD__", $passwd);
	define("__DEFAULTDBNAME__", $dbname);
	ORM::setConfig(__DEFAULTDNS__, __DEFAULTROOT__, __DEFAULTPASSWD__);
?>